#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
多态和继承
"""


class Animal(object):
    def run(self):
        print('Dog is running...')

    def eat(self):
        print('Eating meat...')


class Dog(Animal):
    def run(self):
        print('Dog is running...')


class Cat(Animal):
    def run(self):
        print('Cat is running...')


dog = Dog()
dog.run()

cat = Cat()
cat.run()
